const { Sequelize, sequelize } = require('./sequelize');

const Teacher = sequelize.define('Teacher', {
  tId: {
    type: Sequelize.INTEGER,
    allowNull: false,
    primaryKey: true,
    unique: true,
  },
  tName: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  password: {
    type: Sequelize.STRING,
    allowNull: false,
  },
  tType: {
    type: Sequelize.INTEGER,
    allowNull: false,
  },
  tIsArranged: {
    type: Sequelize.STRING,
  },
  ecIds: {
    type: Sequelize.STRING,
  },
  cIds: {
    type: Sequelize.STRING,
  },
}, {
  modelName: 'Teacher',
  tableName: 'teacher',
  timestamps: false,
});

module.exports = {
  Teacher
};
